﻿@using QLNS
@{
    ViewBag.Title = "Sửa";
    Layout = "~/Views/Shared/_Home.cshtml";
    //lay ds dan toc tu controller truyen qua
    ChuyenMon dt = ViewBag.DSChuyenMon;
}

@using (Html.BeginForm("Update", "Spe", FormMethod.Post, new { name = "form", id = "submit" }))
 { 
    <div class="toolbar">
        <ul>
            <li><input class="tbtnBack" type="button" value="Quay về" onclick="javascript:history.back()"/>
            </li>
            <li><input class="tbtnSave" type="Submit" value="Lưu" /> 
            </li>
        </ul>
        <div class="ttitle">Sửa</div>
    </div>
    <table width="500" border="1">
  
  
  <tr>
  <input type="hidden" name="idcancapnhat" value="@dt.ID" />
    <td>Tên</td>
    <td>@Html.TextBox("Ten", @dt.Ten)</td>
  </tr>
</table>

        <input id="botton" type="Submit" value="Lưu" class="btnSave"/>
 }

 <script type="text/javascript">
     $("#submit").submit(function () {
         if ($("#Ten").val().toString() == "") {
             jqxAlert.alert("Vui lòng nhập tên trình độ chuyên môn!");
             return false;
         }
     });
 </script>